package com.java.tutorials.designpattern.behavioral.command;

//开风扇命令：
public class FanOnCommand implements Command {
    private Fan myFan;
    public FanOnCommand (Fan F) {
        myFan = F;
    }
    public void execute () {
        myFan.startRotate ();
    }
}
